From 430916973abc2e640d8b9eca3d1028b2e980d09d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 31 May 2016 16:32:20 -0400 Subject: [PATCH] GtkShortcutsSection: avoid deprecation warnings We could just as well remove these calls here, since they have no effect. --- gtk/gtkshortcutssection.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c index e21d5ce897..e02a52db5c 100644 --- a/gtk/gtkshortcutssection.c +++ b/gtk/gtkshortcutssection.c @@ -649,11 +649,15 @@ gtk_shortcuts_section_reflow_groups (GtkShortcutsSection *self) gtk_widget_show (column); group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_size_group_set_ignore_hidden (group, TRUE); +G_GNUC_END_IGNORE_DEPRECATIONS g_object_set_data_full (G_OBJECT (column), "accel-size-group", group, g_object_unref); group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_size_group_set_ignore_hidden (group, TRUE); +G_GNUC_END_IGNORE_DEPRECATIONS g_object_set_data_full (G_OBJECT (column), "title-size-group", group, g_object_unref); if (n_columns % 2 == 0) @@ -698,10 +702,14 @@ gtk_shortcuts_section_reflow_groups (GtkShortcutsSection *self) gtk_widget_show (column); group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_size_group_set_ignore_hidden (group, TRUE); +G_GNUC_END_IGNORE_DEPRECATIONS g_object_set_data_full (G_OBJECT (column), "accel-size-group", group, g_object_unref); group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_size_group_set_ignore_hidden (group, TRUE); +G_GNUC_END_IGNORE_DEPRECATIONS g_object_set_data_full (G_OBJECT (column), "title-size-group", group, g_object_unref); gtk_container_add (GTK_CONTAINER (current_page), column); -- 2.30.2